Skip to content

Detect QGIS version for umep-reqs extras#831

Open
sunt05 wants to merge 1 commit intoSuPy-QGIS3from
fix/qgis-version-extra
Open

Detect QGIS version for umep-reqs extras#831
sunt05 wants to merge 1 commit intoSuPy-QGIS3from
fix/qgis-version-extra

Conversation

@sunt05
Copy link
Copy Markdown
Contributor

@sunt05 sunt05 commented Mar 31, 2026

Summary

Use Qgis.QGIS_VERSION to detect the QGIS major version and pass the correct extra when installing umep-reqs:

  • QGIS 3 → pip install umep-reqs[qgis3]
  • QGIS 4 → pip install umep-reqs[qgis4]

Companion to UMEP-dev/umep-reqs#14, which moves the supy version pin into optional-dependencies (extras).

Changes

Utilities/umep_installer.py: two lines added in install_umep_python() to read Qgis.QGIS_VERSION and build the extra string, then interpolated into the existing pip install command.

Ref: UMEP-dev/SUEWS#1252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant